package com.xianggu.demo.service;

import com.xianggu.spring.aware.BeanNameAware;
import com.xianggu.spring.annotation.Component;
import com.xianggu.spring.annotation.Scope;

/**
 * @author chengjy
 * @date 2025/2/28
 */

@Component("userService")
//@Scope("singleton")
@Scope("singleton")
public class UserService implements BeanNameAware , UserInterface {
    @Override
    public void setBeanName(String name) {

    }

    @Override
    public void test() {
        System.out.println("UserService test");
    }
}
